// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'
import goods from './components/goods/Goods.vue'
import ratings from './components/ratings/Ratings.vue'
import seller from './components/seller/Seller.vue'


Vue.use(VueRouter)

Vue.use(VueResource)


const routes = [
//指定默认路由
{path: '/', redirect: 'goods'},
{path: '/goods', component:goods},
{path: '/ratings', component:ratings},
{path: '/seller', component:seller}
]

const router = new VueRouter({
    mode: 'history',
    linkExactActiveClass: 'active',
    routes
})


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
